package cn.dcw.pethome.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/*
做分页返回值对象
1.总条数
2.查询的结果集合
 */
@Data
public class PageList<T> {
    private Long totals=0L;//总条数
    private List<T> pageData = new ArrayList<>();//查询的结果集合

    public PageList() {
    }

    public PageList(Long totals, List<T> pageData) {
        this.totals = totals;
        this.pageData = pageData;
    }
}
